{% extends "base.html" %}

<!--  -->
{% block styles %} {% endblock %}

<!--  -->
{% block page_content %}
<div class="paper">
    <h1>添加班次</h1>
    <form id="add-class-form" action="/class/add" method="post">
        <!-- cla_sn (可能是班次编号，假设是隐藏或自动生成的) -->
        <input type="hidden" name="cla_sn" value="自动生成的值">

        <!-- cou_sn (可能是课程编号) -->
        <label for="cou_sn">课程编号:</label>
        <input type="text" id="cou_sn" name="cou_sn" required>

        <!-- cla_name (班次名称) -->
        <label for="cla_name">班次名称:</label>
        <input type="text" id="cla_name" name="cla_name" required>

        <!-- semester (学期) -->
        <label for="semester">学期:</label>
        <input type="text" id="semester" name="semester" required>

        <!-- location (地点) -->
        <label for="location">地点:</label>
        <input type="text" id="location" name="location" required>

        <!-- 提交按钮 -->
        <button type="submit">添加班次</button>
    </form>
</div>
{% endblock %}